<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>教师注册</title>
	<meta name="description" content="__DESCRIPTION__" />
	<meta name="keywords" content="__KEYWORDS__" />
	<link href="__CSS__/common.css" rel="stylesheet" type="text/css" />
	<link href="__CSS__/Version4Master.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" rev="stylesheet" type="text/css" href="__CSS__/reg.css" />
	<link rel="Stylesheet" rev="Stylesheet" type="text/css" href="__CSS__/validator.css" />
	<script src="__JS__/jquery-1.8.2.js" type="text/javascript"></script>
	<script src="__JS__/formValidator-4.0.1.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__JS__/ValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>
	<script src="__JS__/DateTimeMask.js" type="text/javascript" charset="UTF-8"></script>
	<link href="__CSS__/thickbox.css" rel="stylesheet" type="text/css" />
	<link href="__CSS__/Public/table.css" rel="Stylesheet" rev="Stylesheet" /> 
	<script src="__JS__/thickbox/thickbox.js" type="text/javascript"></script>
	<style type="text/css">
		.STYLE1 {
			color: #FF3300;
			font-size: 12px;
		}
		.STYLE2 {
			font-size: 14px;
		}
		.STYLE3 {
			font-size: 12px;
		}
		.input-button, .input-submit {
			background-color: #005EAC;
			border-color: #B8D4E8 #124680 #124680 #B8D4E8;
			border-style: solid;
			border-width: 1px;
			color: #FFFFFF;
			cursor: pointer;
			font-size: 12px;
			padding: 4px 15px;
			text-align: center;
		}
		input.gray {
			background: none repeat scroll 0 0 #F0F0F0 !important;
			border-color: #FFFFFF #848484 #848484 #FFFFFF !important;
			border-style: solid;
			border-width: 1px;
			color: #333333 !important;
		}
	</style>
	<script type="text/javascript">
		$(document).ready(function(){
			$.formValidator.initConfig({formID:"aspnetForm",autoTip:false,onError:function(msg){alert(msg)},inIframe:true});
			$("#UserName").formValidator({onShow:"用户名不可修改",onFocus:"用户名已注册，不能修改了！",onCorrect:"用户名可用"}).inputValidator({min:1,max:100,onError:"你输入的用户名非法,请确认"}).regexValidator({regExp:"email",dataType:"enum",onError:"您输入的邮箱格式不正确"});
			$("#OrgLocationId").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
			$("#SchoolId").formValidator({onShow:"请选择！",onFocus:"必须选择！",onCorrect:"　",defaultValue:""}).inputValidator({min:1,onError: "你是不是忘记选择了!"});
			$("#TrueName").formValidator({onShow:"请输入真实姓名, 2-5个简体中文", onFocus:"姓名不能为空",onCorrect: "　",defaultValue:""}).inputValidator({min:4,max:10,empty:{leftEmpty:false,rightEmpty:false,emptyError:"姓名两边不能有空符号"},onError:"姓名必须为2-5个简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"姓名必须为2-5个简体中文"});
			$("#Password").formValidator({onShow:"请输入密码, 6~16个字符，由数字、字母、符号组成！",onFocus:"请输入密码, 6~16个字符，由数字、字母、符号组成！",onCorrect:"　"}).inputValidator({min:6,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"密码两边不能有空符号"},onError:"密码长度非法,请确认"});
			$("#Repassword").formValidator({onShow:"请输入重复密码！",onFocus:"两次密码必须一致哦！",onCorrect:"　"}).inputValidator({min:6,max:16,empty:{leftEmpty:false,rightEmpty:false,emptyError:"重复密码两边不能有空符号"},onError:"两次密码必须一致！"}).compareValidator({desID:"Password",operateor:"=",onError:"2次密码不一致,请确认"});
			$("#PhoneNumber").formValidator({onShow:"请输入你的手机号码！",onFocus:"请输入你的手机号码！",onCorrect:"　"}).inputValidator({min:11,max:11,onError:"手机号码必须是11位的,请确认"}).regexValidator({regExp:"mobile",dataType:"enum",onError:"你输入的手机号码格式不正确"});
			$("#Email").formValidator({onShow:"此邮箱地址将是组委会与你日常联系的重要途径之一，一定要认真填写哦！可以与“登录邮箱”相同",onFocus:"此邮箱地址将是组委会与你日常联系的重要途径之一，一定要认真填写哦！可以与“登录邮箱”相同",onCorrect:"　"}).inputValidator({min:6,max:100,onError:"你输入的邮箱长度非法,请确认"}).regexValidator({regExp:"email",dataType:"enum",onError:"你输入的邮箱格式不正确"});
			$("#OrgLocationId").change(function(){
				var id=$(this).val();
				$.get("__URL__/getSchoolList/pro/"+id,function(data){
					if(data){
						$("#SchoolId").empty();
						$("#SchoolId").append('<option>---请选择---</option>');
						for(var i=0;i<data.length;i++){
							$("#SchoolId").append("<option value='"+data[i].Id+"'>"+data[i].SchoolName+"</option>");
						}
						$("#SchoolId").append('<option value="0">其他</option>');
					}
				},"json");
				$("#OrgContent1").show();
				$("#OrgContent2").hide();
				$("#OrgLocation").val($("#OrgLocationId option:selected").text());
			});
			$("#SchoolId").change(function(){
				if($(this).val() == '0'){
					$("#OrgContent1").hide();
					$("#OrgContent2").show();
					$("#OrgName").val('');
					$("#OrgName").formValidator({onShow:"没有您所在的高校？请手动填写！", onFocus:"请手动填写您所在高校！",onCorrect: "　",defaultValue:""}).inputValidator({min:1,max:50,empty:{leftEmpty:false,rightEmpty:false,emptyError:"两边不能有空符号"},onError:"名称必须为简体中文"}).regexValidator({regExp:"chinese",dataType:"enum",onError:"名称必须为简体中文"});
				}else{
					$("#OrgName").val($("#SchoolId option:selected").text());
				}
			});
		});
		function doreset() {
			document.location.reload();
		}
	</script>
</head>
<body>
	<form name="aspnetForm" method="post" action="__URL__/editRegisterForm" id="aspnetForm"> 
		<div id="container">
			<!-- ---header部分-- start ---- -->
			<include file="./Match/Tpl/Include/header.html" />
			<!-- ---header部分--  end  ---- -->
			<div class="clear"> </div>
			<div id="position">
			    <ul class="position">
					<li style="background: url(images/positionL.jpg) no-repeat; left; width: 15px;">&nbsp;</li>
					<li style="padding-top: 4px;">您的位置：<a href="__APP__/">大赛首页</a>>>老师注册</li>
					<li style="background: url(images/positionR.jpg) right; float: right;">&nbsp;</li>
			    </ul>
			</div>
			<div id="main1">
				<h1> 教师用户注册</h1>
				<div class="list" id="step1">
					<table width="950" border="0" cellspacing="0" cellpadding="0" style="font-size: 14px;">
						<tr>
							<td colspan="4" style="text-align: center">
								<h3> 感谢您对大赛的支持和对团队的指导！</h3><br />
							</td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td width="256"><div align="right" class="STYLE2"> *登录邮箱：</div></td>
						    <td width="178"><input name="UserName" type="text" readonly="readonly" id="UserName" value="{$user.UserName}" /></td>
						    <td width="429"><div id="UserNameTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
							<td> <div align="right" class="STYLE2">*高校所在地区： </div></td>
						    <td>
								<input id="OrgLocation" name="OrgLocation" type="hidden" />
								<span class="STYLE2">
								<select id='OrgLocationId' name="OrgLocationId">
									<option value="0" selected="selected">---请选择---</option>
									<volist name="province" id="vo">
										<option value='{$vo.Id}'>{$vo.Name}</option>
									</volist>
								</select>
								</span>
						  </td>
						  <td><div id="OrgLocationIdTip" style="width: 250px" /></td>
						</tr>
						<tr id="OrgContent1">
							<td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *高校名称： </div></td>
						    <td width="150">
								<div id="highschool">
							    <select id="SchoolId" name="SchoolId">
									<option value='-1'>---请选择---</option>
							    </select>
								</div>
						    </td>
						    <td><div id="SchoolIdTip" style="width: 250px" /></td>
						</tr>
						<tr id="OrgContent2" style="display:none;">
							<td width="87" height="35">&nbsp;</td>
						    <td><div align="right" class="STYLE2"> *高校名称： </div></td>
						    <td width="150">
								<div id="highschool">
									<input type="text" name="OrgName" id="OrgName" />
								</div>
						    </td>
						    <td><div id="OrgNameTip" style="width: 250px" /></td>
						</tr>
						<tr>
							<td width="87" height="35">&nbsp;</td>
						    <td><div align="right" class="STYLE2"> *姓名： </div></td>
						    <td><span class="STYLE2"><input name="TrueName" type="text" id="TrueName" value="{$user.TrueName}" /></span></td>
							<td><div id="TrueNameTip" style="width: 250px" /></td>
						</tr>
						<tr>
						    <td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *密码：</div></td>
						    <td><span class="STYLE2"><input name="Password" type="password" id="Password" /></span></td>
						    <td><div id="PasswordTip" style="width: 250px" /></td>
						</tr>
						<tr>
						    <td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *确认密码：</div></td>
						    <td><span class="STYLE2"><input name="Repassword" type="password" id="Repassword" /></span></td>
						    <td><div id="RepasswordTip" style="width: 250px" /></td>
						</tr>
						<tr>
						    <td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *手机号码：</div></td>
						    <td><input name="PhoneNumber" type="text" id="PhoneNumber" value="{$user.PhoneNumber}" /></td>
						    <td><div id="PhoneNumberTip" style="width: 250px" /></td>
						</tr>
						<tr>
						    <td width="87" height="35">&nbsp;</td>
							<td><div align="right" class="STYLE2"> *常用邮箱：</div></td>
						    <td><input name="Email" type="text" id="Email" value="{$user.Email}" /></td>
						    <td><div id="EmailTip" style="width: 250px,height:250px;" /></td>
						</tr>
					</table>
					<p style="padding-top: 15px; padding-bottom: 15px;" class="list1">
						<input type="submit" name="NextSubmit" value="下一步" id="NextSubmit"  class="input-button" />
						<input id="reset" type="reset" value="重新填写" class="input-button gray" onclick="doreset()" />
					</p>
				</div>
			</div>
			<div class="clear"> </div>
			<!-- ---footer部分--  start ---- -->
			<include file="./Match/Tpl/Include/footer.html" />
			<!-- ---footer部分--   end  ---- -->
		</div>
	</form>
</body>
</html>